package com.example.sell.enums;

import lombok.Getter;

/**
 * Created by IntelliJ IDEA.
 *
 * @author ouyangzhixiang
 * @date 2018/6/28
 */
@Getter
public enum  ProductStatus implements CodeEnum{
    /**商品状态为0代表商品上架状态*/
    UP(0,"上架"),
    /**商品状态为1代表商品已下架*/
    DOWN(1,"下架"),
    ;
    private Integer code;
    private String desc;

    ProductStatus(Integer code, String desc) {
        this.code = code;
        this.desc = desc;
    }
}
